/**
 * 
 */
package any.desktop.server;

import java.io.IOException;

import any.desktop.FileItem;

/**
 * @author keke <keke@codehaus.org>
 * @version 0.0.4
 * @revision $Revision:$
 */
public interface DesktopIndexer {
	void flushAndCommit() throws IOException;

	/**
	 * Index a fileItem.
	 * 
	 * @param item
	 * @return <code>this</code> instance of {@link DesktopIndexer}.
	 * @throws IOException
	 * @throws IndexException
	 */
	DesktopIndexer index(FileItem item) throws IOException, IndexException;
}
